package org.jeecg.modules.logistics.manage.sj_info.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.logistics.manage.sj_info.entity.SjInfo;
import org.jeecg.modules.logistics.manage.sj_info.mapper.SjInfoMapper;
import org.jeecg.modules.logistics.manage.sj_info.service.ISjInfoService;
import org.jeecg.modules.logistics.table.cl.entity.Cl;
import org.jeecg.modules.logistics.table.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 司机全部信息
 * @Author: 唐小尊
 * @Date: 2019-11-04
 * @Version: V1.0
 */
@Service
@DS("freight")
public class SjInfoServiceImpl implements ISjInfoService {
    @Autowired
    SjInfoMapper sjInfoMapper;

    @Override
    public SjInfo getOneSjInfo(String sjId) {
        return sjInfoMapper.getOneSjInfo(sjId);
    }

    @Override
    public List<SjInfo> getSjInfoList() {
        return sjInfoMapper.getSjInfoList();
    }

    @Override
    public int putOneUserZt(String userId, Integer zt) {
        return sjInfoMapper.putOneUserZt(userId, zt);
    }

}
